using System;
using XmlStudio.DataLayer;

namespace XmlStudio.Models.Events {
    /// <summary>
    /// Event arguments for NodeCollapsed event.
    /// </summary>
    /// <typeparam name="TNode">Node type.</typeparam>
    public class NodeCollapsedEventArgs<TNode> : EventArgs
        where TNode : BigXmlNode {
        /// <summary>
        /// Initializes a new instance of the <see cref="NodeCollapsedEventArgs{TNode}"/> class.
        /// </summary>
        /// <param name="node">Reference to the <see cref="BigXmlNode"/> instance.</param>
        public NodeCollapsedEventArgs(TNode node) {
            this.Node = node;
        }

        /// <summary>
        /// Gets the node associated with the current event arguments.
        /// </summary>
        public TNode Node {
            get;
            private set;
        }
    }
}